package com.operate.dao;

import com.operate.bean.VO.DinersNumStatVO;
import com.operate.bean.VO.ReservationTimeStatVO;
import com.operate.bean.VO.WRDayTypeNumVO;
import com.operate.bean.VO.WRMonthNumVO;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @description:
 * @author: ZeckZheng
 * @time: 2023/11/6 3:32
 */
@Mapper
public interface ReservationMapper {
    //预约 渠道数量统计（近12个月）
    @MapKey("statTime")
    List<WRMonthNumVO> reservationMonthList();

    //预约 渠道数量统计（近30日）
    List<WRDayTypeNumVO> reservationDayTypeList();

    //近30天 预约时间段统计
    List<ReservationTimeStatVO> reservationStatTime();

    //预约就餐人数规模统计
    List<DinersNumStatVO> dinersNumStatList();

    @MapKey("statTime")
    Map<String, Map<String, Object>> reservationTotalCustomerMonth();

    @MapKey("statTime")
    Map<String, Map<String, Object>> reservationRegularCustomer();


}
